<template>
	<view>
		<!-- 自定义导航栏 -->
		<!-- <view class="navBarBox">
			<hx-navbar :config="config" />
		</view> -->
		<!-- 页面内容 -->
		 <web-view :src="allUrl"></web-view>
	</view>
</template>

<script>
	import dataList from '@/common/data/data.js'; // 宫格数据
	export default {
		components: {},
		data () {
		  return {
		    allUrl: '',
		    viewerUrl: 'http://3510b38g11.zicp.fun:13894/index/main2',
		    pdfUrl: '',
			
		  }
		},
		onLoad (options) {
		  console.log(20, options.pdfUrl)  //通过传参传递过来
		  // this.pdfUrl = options.pdfUrl
		  let fileUrl = encodeURIComponent(this.pdfUrl) // encodeURIComponent 函数可把字符串作为 URI 组件进行编码。
		  this.allUrl = this.viewerUrl 
		
		}
	};
</script>
<style lang="scss">
	@mixin flex {
		/* #ifndef APP-NVUE */
		display: flex;
		/* #endif */
		flex-direction: row;
	}

	@mixin height {
		/* #ifndef APP-NVUE */
		height: 100%;
		/* #endif */
		/* #ifdef APP-NVUE */
		flex: 1;
		/* #endif */
	}

	.box {
		@include flex;
	}


	.popup-content {
		@include flex;
		align-items: center;
		justify-content: center;
		padding: 18px;
		height: 60px;
		background-color: #e7e7e7;
	}

	.popup-height {
		@include height;
		width: 300px;
	}

	.text {
		font-size: 14px;
		color: #333;
	}

	.popup-info {
		color: #c7c7c7;
		background-color: #d9dde2;
		font-size: 14px;
	}

	.title {
		font-size: 14px;
		font-weight: bold;
		margin: 20px 0 5px 0;
	}

	.data-pickerview {
		height: 400px;
		border: 1px #e5e5e5 solid;
	}

	.popper__arrow {
		top: -6px;
		left: 50%;
		margin-right: 3px;
		border-top-width: 0;
		border-bottom-color: #EBEEF5;
	}

	.popper__arrow {
		top: -6px;
		left: 50%;
		margin-right: 3px;
		border-top-width: 0;
		border-bottom-color: #EBEEF5;
	}
</style>
